package com.alasbusy.alasbusyapp.activity.fragment;

import android.content.Intent;
import android.view.View;
import android.widget.LinearLayout;
import com.alasbusy.alasbusyapp.R;
import com.alasbusy.alasbusyapp.activity.twoactivity.WxPayActivity;
import com.alasbusy.alasbusyapp.base.BaseFragment;
import com.zhy.android.percent.support.PercentLinearLayout;

/**
 * Created by Administrator on 2018/5/14.
 */

public class WebFragment extends BaseFragment {

    private LinearLayout xiaoqingx_layout;

    @Override
    public int getLayout() {
        return R.layout.webnews_fragment;
    }

    @Override
    protected void initView(View view) {
        PercentLinearLayout web_fragment_title = view.findViewById(R.id.web_fragment_title);
        setTop(web_fragment_title);
        getVisibility(false, getActivity());
        getTitle("模板");

        xiaoqingx_layout = view.findViewById(R.id.xiaoqingx_layout);
    }

    @Override
    protected void initData() {

    }

    @Override
    protected void initListener() {
        xiaoqingx_layout.setOnClickListener(new View.OnClickListener() {
            @Override
            public void onClick(View view) {
                startActivity(new Intent(getActivity(), WxPayActivity.class));
            }
        });
    }
}
